<template>
	<view class="centerBox">
		<nav-bar fontColor="#FFFFFF" title="账户管理"></nav-bar>
		<uni-card style="margin-top: 20rpx;" title="138949203489423428" :isFull="true"
			sub-title="中国建设银行" thumbnail="/static/icon/iconIndex/account.png">
		</uni-card>
		<button type="primary" class="add-btn" @click="handleAdd">新增</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				form: {}
			}
		},
		onLoad() {
			// this.getUserInfo();
		},
		methods: {
			handleAdd(){
				uni.navigateTo({
					url:'/pages/resource/accountList'
				})
			},
			getUserInfo() {
				let opt = {
					url: 'basic/customer/getMyCustInfor',
					method: 'POST'
				};
				this.$http.httpTokenRequest(opt, {}).then(res => {
					if (res.data.code == 200) {
						this.form = res.data.data
					}
				})
			},
			launch() {
				let formData = JSON.stringify(this.form)
				uni.navigateTo({
					url: '/pages/product/launch-product?id=' + formData
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #f4f4f4;
	}

	.flex {
		display: flex;
	}
	.add-btn {
	  position: fixed;
	  left: 30upx;
	  right: 30upx;
	  bottom: 16upx;
	  align-items: center;
	  justify-content: center;
	  width: 690upx;
	  height: 80upx;
	  font-size: 32upx;
	  color: #fff;
	  border-radius: 10upx;
	}
	.tag {
		color: dodgerblue;
		background: #FFFFFF;
		width: 120rpx;
		height: 50rpx;
		text-align: center;
		border-radius: 25px;
		font-size: 25rpx;
		line-height: 50rpx;
		background: #b5e3ff;
		position: absolute;
		right: 5%;
		margin-top: 30rpx;

	}

	.tag1 {
		color: #00d900;
		background: #FFFFFF;
		width: 120rpx;
		height: 50rpx;
		text-align: center;
		border-radius: 25px;
		font-size: 25rpx;
		line-height: 50rpx;
		margin: 20rpx 10rpx;
	}

	.tag2 {
		color: #e8d609;
		background: #FFFFFF;
		width: 120rpx;
		height: 50rpx;
		text-align: center;
		border-radius: 25px;
		font-size: 25rpx;
		line-height: 50rpx;
		margin: 20rpx 10rpx;
	}

	.topBgColor {
		width: 100%;
		height: 400rpx;
		background-image: linear-gradient(to right, #495aff 0%, #0acffe 100%);
	}

	.topTitle {
		display: flex;
		height: 100rpx;
		padding: 20rpx;

		span {
			font-size: 40rpx;
			color: #FFFFFF;
			font-weight: bold;
			line-height: 100rpx;
			margin-left: 20rpx;
		}

		image {
			height: 40rpx;
			width: 40rpx;

		}

		.jiantou {
			line-height: 120rpx;
		}

	}

	.addressBox {
		width: 95%;
		margin: 0 auto;
		background: #FFFFFF;
		border-radius: 15rpx;
		// margin-top: 100rpx;
		position: absolute;
		height: 350rpx;
		top: 14%;
		left: 2.5%;
		margin-top: 60rpx;
		text-align: center;
	}

	.centerBox {
		width: 95%;
		margin: 0 auto;

		.centerBoxtitle {
			font-size: 35rpx;
			color: #000000;
			font-weight: bold;
			margin: 20rpx 0;
		}

		.centerBoxDetail {
			color: #a5a5a5;
			font-size: 28rpx;
			letter-spacing: 2rpx;
			margin: 20rpx 0;
		}

		.top {
			margin: 70rpx 0;
		}
	}

	.bottomBox {
		position: fixed;
		width: 100%;
		bottom: 0;
		margin-bottom: 20rpx;
		z-index: 1000;
	}

	.buttonBox {
		width: 100%;
		margin: 0 auto;
		display: flex;
		justify-content: space-around;

		// margin-top: 200rpx;
	}

	.button_fix {
		width: 90%;
		height: 70rpx;
		// margin: 0 auto;
		color: #FFFFFF;
		background: #2749C8;
		font-weight: bold;
		letter-spacing: 5rpx;
		font-size: 28rpx;
		line-height: 70rpx;

	}
</style>